import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import _ from 'lodash'
import * as API from '@/http/api'
Vue.prototype.$http = API
import TreeTable from 'vue-table-with-tree-grid'
import VueQuillEditor from 'vue-quill-editor'
import { BmlMarkerClusterer } from 'vue-baidu-map'//全局百度插件

Vue.component('bml-marker-cluster', BmlMarkerClusterer)
import * as echarts from 'echarts'
import VueEcharts from 'vue-echarts'
import VCharts from 'v-charts'
Vue.component('tree-table', TreeTable)
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor).use(ElementUI).use(VCharts)
Vue.component('v-chart',VueEcharts)

Vue.prototype.axios = axios
Vue.filter('time', function (val) {
  const tim = new Date().toLocaleString(val * 1000)
  return tim
})
new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
